View Issue Details

IDProjectCategoryView StatusLast Update
0001836T99X171.00 SKB EagleSW Issuepublic2023-12-27 14:11
Reporter(ALTech) Younkwang Jung Assigned To(ALTech) Younkwang Jung Due Date2023-11-20 16:04
PrioritynormalSeveritys4-minorReproducibilityalways
Status closedResolutionfixed 
Summary0001836: [Smart3][UI541] audio issue when entering TJ karaoke after connecting earphones to RCU(BA01)
DescriptionHI Jason

Issue is
TV is outputting the sound. even though the earphone is connected after enter TJ karoaoke

JIRA is
https://jira.skbroadband.com/browse/BPM-25423

STB: Smart3(BFX-AT100)
F/W ver: 15.541.28-0000
Web UI: 5.4.1.238(STG)
Revision: Native(r25956), Zem(r7671)
Server-list: PRD
CSS IP : 1.255.102.150
MAC: 28:cd:c4:ff:95:df

The reproduction step is as follows.
1) Connect(pairing) BA01 to STB.
2) Connect the earphone to BA01.
   then sound of the STB is heard through the earphone.
3) enter TJ karaoke.
   There is no sound from the earphone and the sound is output from the TV.
   
Please check it

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) JunGyu Kim , (ALTech) SY Yoon , (SW) Jason Ling , (SW) Sam Yang

Activities

(ALTech) Younkwang Jung

2023-11-16 12:13

developer  

BPM-25423.zip (46,500,872 bytes)

(ALTech) Younkwang Jung

2023-11-16 12:40

developer   ~0014564

Last edited: 2023-11-16 12:41

View 2 revisions

Hi Jason

I reproduced it with the same step, and issue is being observed
Please check attached log

=============================================================================
> before_earphone.txt (dumpsys audio)

13:23:34 connect earphone to BA01
    11-16 13:23:35.922 I 8025 8025 BtvBtPairingService: BT A2DP Key input onReceive->audio connect

> after_earphone.txt (dumpsys audio)


13:25:08 enter TJ app
    11-16 13:25:08.863 I 3858 3898 ActivityManager: Start proc 9359:kr.co.tjcomm.zillernoraebang/u0a68 for activity {kr.co.tjcomm.zillernoraebang/kr.co.tjcomm.zillernoraebang.ZillerNoraebang}
    11-16 13:25:08.945 D 5357 5357 Appstats: [stats] current= TJ노래방, prev = B tv, pPackageName : com.skb.tv

> From this point on, I can't hear any sound from my earphones
> enter_tj_app.txt (dumpsys audio)
> enter_tj_app_play.txt (dumpsys audio)

===============================================================================================================

Thank you
YK.Jung
dumpsys_audio.zip (12,941 bytes)

(ALTech) Younkwang Jung

2023-11-16 15:11

developer   ~0014566

Hi Jason

Please check it quickly
Other manufacturers do not see this issue and it seems to occur only in FXN models
If it's not FXN issue, I have to assign it to the other team

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-11-17 09:09

developer   ~0014571

Hi Sam

There is no issue when I checked INTEK'STB
I attached the log , please compare it

Thank you
YK.Jung
image.png (481,953 bytes)

(ALTech) Younkwang Jung

2023-11-17 15:04

developer   ~0014578

Hi Sam

Please update the progress

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-11-17 16:12

developer   ~0014581

Hi Sam

Please let me know the results of the review so far

Thank you
YK.Jung

(SW) Sam Yang

2023-11-17 17:33

developer   ~0014582

Hi Younkwang,

After tracing code, I think it's audio routing issue. When create an audio patch to set MIC as source, it wrongly set HDMI as sink.
I am fixing it, and will give you a test FW for verifying.

Thanks~
Sam

(ALTech) Younkwang Jung

2023-11-20 14:10

developer   ~0014587

HI Sam

Please update the progress
and when can this issue be resolved ?
Can I get a Test FW within today?

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-11-21 10:04

developer   ~0014595

Hi Sam

Please let me know the schedule that you can solve
Then , I can discuss with SKB manager whether to move this issue to the next BMT schedule

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-11-23 08:06

developer   ~0014603

Hi Sam

I have a meeting with SKB today
So please update the progress

Thank you
YK.Jung

(SW) Sam Yang

2023-11-23 14:08

developer   ~0014605

Hi Younkwang,

Please use this FW to verify it: /release_by_fxn/smart3_test/20231123_mantis1836/usb_bfx-at100_V15.541.506.zip

Thanks~
Sam

(ALTech) Younkwang Jung

2023-11-23 15:09

developer   ~0014606

Hi Sam

I checked you test FW , it is not VCS FW

Please build from VCS branch and send me the test image
repo init -u ssh://git@bitbucket.skbroadband.com:7999/fstbq/manifest.git -b BFX-AT100_5.4.1_VCS

Thank you
YK.Jung

(ALTech) Younkwang Jung

2023-11-23 16:23

developer   ~0014608

HI Sam

Can I get a Test VCS FW within an hour ?

Thank you
YK.Jung

(SW) Sam Yang

2023-11-23 17:05

developer   ~0014610

Hi Younkwang,

Please use this FW to verify: /release_by_fxn/smart3_test/20231123_mantis1836/usb_bfx-at100_V15.541.29.zip

Thanks~
Sam

(ALTech) Younkwang Jung

2023-11-23 18:22

developer   ~0014612

Hi Sam

I tested it , this issue was fixed. I wlll ask QA team to review this FW

And in order to update to JIRA, please explain the following
- What is the cause of this issue and how it was resolved
- Will there be a side effect or items that need further testing

Thank you
YK.Jung

(SW) Sam Yang

2023-11-24 09:43

developer   ~0014617

Hi Younkwang,

- What is the cause of this issue and how it was resolved
=> The root cause is: in audio routing, when open karaoke APP, we will set HDMI as output device.
        (This policy since 2020: hardware/amlogic/audio/libamlaudiohal/aml_port_dvb/AmlAudioOutPort.cpp: createAudioPatchEagle())
        To resolve it, I set a new policy: use the current audio output device when open karaoke APP.
- Will there be a side effect or items that need further testing
=> I only modify the audio routing policy when open karaoke APP, so I think there won't be a side effect. Also could verify the other audio routing scenarioes for further testing.

Thanks~
Sam

(ALTech) Younkwang Jung

2023-11-24 11:23

developer   ~0014620

Hi Sam

>> => The root cause is: in audio routing, when open karaoke APP, we will set HDMI as output device.
>> (This policy since 2020: hardware/amlogic/audio/libamlaudiohal/aml_port_dvb/AmlAudioOutPort.cpp: createAudioPatchEagle())
it's strange
There is no problem when I tested this FW (15.540.16-20230720 ) . (build date is 2023/07/20)

I am attaching a log with no issue in FW(15.540.16)
Please check it

Thank you
YK.Jung

(SW) Sam Yang

2023-11-27 10:53

developer   ~0014628

Hi Younkwang,

According to your log's case, someone (maybe M/W or APP) creates a new audio patch and sets sink device as A2DP. So the result is normal:
11-24 12:15:11.719 3502 8020 I audio_hw_primary: aml_audio_output_routing: switch from OUTPORT_HDMI to OUTPORT_A2DP
11-24 12:15:11.719 3502 8020 I audio_hw_primary: adev_create_audio_patch: mix->device patch: outport(7)

But the issue's case is deferent: BTF HAL calls to create a new audio patch, and it fixedly sets sink device as HDMI (which I mentioned in #c14617).
So, I fixed the scenario of the issue case.

Thanks~
Sam

(ALTech) Younkwang Jung

2023-11-27 16:49

developer   ~0014635

HI Sam

There is no problem with the ALT QA test result.
So please apply this solution to UI541 / UI541 VCS.

Please use BPM-25423 for the commit message.

Thank you
YK.Jung

(SW) Sam Yang

2023-11-28 09:44

developer   ~0014640

Hi Younkwang,

Done, the commit is: 2023-11-28 09:39:55 | sam.cy.yang@mail.f.. | 761e5765 | hardware/amlogic | [BPM-25423] fix audio routing issue when entering TJ karaoke(1836)

Thanks~
Sam

Issue History

Date Modified Username Field Change
2023-11-16 12:13 (ALTech) Younkwang Jung New Issue
2023-11-16 12:13 (ALTech) Younkwang Jung Status new => assigned
2023-11-16 12:13 (ALTech) Younkwang Jung Assigned To => (SW) Jason Ling
2023-11-16 12:13 (ALTech) Younkwang Jung File Added: BPM-25423.zip
2023-11-16 12:14 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2023-11-16 12:14 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2023-11-16 12:40 (ALTech) Younkwang Jung Note Added: 0014564
2023-11-16 12:40 (ALTech) Younkwang Jung File Added: BFX-AT100_20231116-132127.zip
2023-11-16 12:40 (ALTech) Younkwang Jung File Added: dumpsys_audio.zip
2023-11-16 12:41 (ALTech) Younkwang Jung Note Edited: 0014564 View Revisions
2023-11-16 15:11 (ALTech) Younkwang Jung Note Added: 0014566
2023-11-16 15:15 (ALTech) Younkwang Jung Priority high => normal
2023-11-16 18:35 (SW) Jason Ling Issue Monitored: (SW) Jason Ling
2023-11-16 18:35 (SW) Jason Ling Assigned To (SW) Jason Ling => (SW) Sam Yang
2023-11-17 09:09 (ALTech) Younkwang Jung Note Added: 0014571
2023-11-17 09:09 (ALTech) Younkwang Jung File Added: BID-AT200_20231117-093654.zip
2023-11-17 09:09 (ALTech) Younkwang Jung File Added: image.png
2023-11-17 15:04 (ALTech) Younkwang Jung Note Added: 0014578
2023-11-17 15:04 (ALTech) Younkwang Jung Due Date => 2023-11-20 16:04
2023-11-17 16:12 (ALTech) Younkwang Jung Note Added: 0014581
2023-11-17 17:33 (SW) Sam Yang Note Added: 0014582
2023-11-17 17:33 (SW) Sam Yang Issue Monitored: (SW) Sam Yang
2023-11-20 14:10 (ALTech) Younkwang Jung Note Added: 0014587
2023-11-21 10:04 (ALTech) Younkwang Jung Note Added: 0014595
2023-11-23 08:06 (ALTech) Younkwang Jung Note Added: 0014603
2023-11-23 14:08 (SW) Sam Yang Note Added: 0014605
2023-11-23 15:09 (ALTech) Younkwang Jung Note Added: 0014606
2023-11-23 16:23 (ALTech) Younkwang Jung Note Added: 0014608
2023-11-23 17:05 (SW) Sam Yang Note Added: 0014610
2023-11-23 18:22 (ALTech) Younkwang Jung Note Added: 0014612
2023-11-24 09:43 (SW) Sam Yang Note Added: 0014617
2023-11-24 09:43 (SW) Sam Yang Assigned To (SW) Sam Yang => (ALTech) Younkwang Jung
2023-11-24 09:43 (SW) Sam Yang Status assigned => feedback
2023-11-24 11:23 (ALTech) Younkwang Jung Note Added: 0014620
2023-11-24 11:23 (ALTech) Younkwang Jung File Added: BFX-AT100_20231124-121409.zip
2023-11-27 10:53 (SW) Sam Yang Note Added: 0014628
2023-11-27 16:49 (ALTech) Younkwang Jung Note Added: 0014635
2023-11-28 09:44 (SW) Sam Yang Note Added: 0014640
2023-11-28 09:44 (SW) Sam Yang Status feedback => resolved
2023-11-28 09:44 (SW) Sam Yang Resolution open => fixed
2023-12-27 14:11 (ALTech) JunGyu Kim Status resolved => closed